package com.bl.student.service.vo.user;

import com.bl.student.common.enums.Sex;
import com.bl.student.common.enums.UserStatus;
import com.bl.student.service.vo.AbstractVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by yujingyi on 2018/2/11.
 */
@Data
public class UserSimpleInfoVo extends AbstractVo {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "环信id")
    @Column(name = "hx_id")
    private String hxId;

    private String hxName;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "帐号")
    private String account;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    @Enumerated(EnumType.STRING)
    private Sex sex;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "省份ID")
    @Column(name = "province_id")
    private String provinceId;

    @ApiModelProperty(value = "理想院校")
    @Column(name = "college")
    private String college;

    @ApiModelProperty(value = "邀请码")
    @Column(name = "invite_code")
    private String inviteCode;

    @ApiModelProperty(value = "账户余额")
    private BigDecimal money;

    @ApiModelProperty(value = "积分")
    private int point;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "用户状态")
    private UserStatus status;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "openid")
    @Column(name = "open_id")
    private String openId;

    @ApiModelProperty(value = "unionId")
    @Column(name = "union_id")
    private String unionId;

    @ApiModelProperty(value = "学生证")
    @Column(name = "student_card")
    private String studentCard;

    @ApiModelProperty(value = "是否认证")
    private String auth;

    private double grade;

    private String hxPwd;

    private String info;

    private Double score;

}
